package com.shiro.demo.Service.impl;

import com.shiro.demo.Model.User;
import com.shiro.demo.Repository.UserRepository;
import com.shiro.demo.Service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Csea
 * @title
 * @date 2019/5/7 11:05
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserRepository repository;

    @Override
    public User findByUsername(String username) {
        return repository.findByUsername(username);
    }
}
